<template>
  <div class="">
    <h1>{{ user }}</h1>
  </div>
</template>

<script>
import { login, getList } from "../api/user.js";
import { mapState, mapGetters, mapMutations, mapActions } from "vuex";
export default {
  data() {
    return {
      // user: {},
    };
  },
  computed: {
    ...mapGetters(["getUser"]),
    ...mapState(["user"])
  },
  mounted() {
    this.setUser("444444");
    this.yibuSetUser('8888888')
    this.peomiseUser("9999999").then(() => {
      console.log("chengg");
    });
  },
  methods: {
    ...mapMutations(["setUser"]),
    ...mapActions(["yibuSetUser", "peomiseUser"]),
  },
};
</script>

<style scoped></style>
